#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/5/13 9:57
# @Author : 吴敬超
# explain:
import numpy as np

#
# a = [[1, 2, 3, 4],
#      [1, 2, 3, 4],
#      [1, 2, 3, 4],
#      [1, 2, 3, 4]]

a = [
    [

        [1, 2],
        [3, 4]
    ],

    [[5, 6], [7, 8]]

]
yuansu = []

# print type(a)


# print("数组的维度数目",a.ndim)
arr = []
m=0

def bianli(lists,m):
    print("*****ceng shu num **********",m)
    # print("*****run bianli num is **********",m)

    # print (m)

    for i in lists:
        print i
        if type(i) != list:
            print "递归到底"
            # print i

            # print("*****arr is **********", arr)
        else:
            print "递归不到底"
            # print i
            # arr.append(m)
            bianli(i,m+1)


        # print i


#
bianli(a,m)
# print(yuansu)
#
# arr = np.array(
#     [[[1, 2], [3, 4]],
#      [[5, 6], [7, 8]]]
# )
# print type(arr)
# for x in np.nditer(arr):
#     print(x)
#!/usr/bin/python

aList = [123, 'xyz', 'zara', 'abc', 123];
bList = [123,2009, 'manni'];
aList.extend(bList)

print "Extended List : ", aList ;